home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / g++1.sparc / local.mk < prev    next >
Encoding:
Makefile  |  1990-04-15  |  3.3 KB  |  113 lines

  1. #
  2. # This file is included by Makefile.  Makefile is generated automatically
  3. # by mkmf, and this file provides additional local personalization.  The
  4. # variable SYSMAKEFILE is provdied by Makefile;  it's a system Makefile
  5. # that must be included to set up various compilation stuff.
  6. #
  7.  
  8. #if !empty(TM:Msun4)
  9. CFLAGS          += -D__sparc__
  10. #endif
  11.  
  12. #
  13. # Must add to OBJS for .c files generated below, since the .c files may
  14. # not exist at the time mkmf is run to generate OBJS automatically.
  15. #
  16. OBJS        += $(TM).md/insn-emit.o $(TM).md/insn-extract.o \
  17.         $(TM).md/insn-output.o $(TM).md/insn-peep.o \
  18.         $(TM).md/insn-recog.o $(TM).md/cplus-tab.o
  19. CLEANOBJS    += $(TM).md/insn-emit.o $(TM).md/insn-extract.o \
  20.         $(TM).md/insn-output.o $(TM).md/insn-peep.o \
  21.         $(TM).md/insn-recog.o insn-emit.c insn-extract.c \
  22.         insn-output.c insn-peep.c insn-recog.c \
  23.         $(TM).md/gencodes $(TM).md/genconfig $(TM).md/genemit \
  24.         $(TM).md/genextract $(TM).md/genflags $(TM).md/genoutput \
  25.         $(TM).md/genpeep $(TM).md/genrecog $(TM).md/cplus-tab.o
  26.  
  27. #
  28. # Don't automatically back up Gcc stuff:  want to make sure the
  29. # backup version is VERY reliable and don't want two quick buggy
  30. # changes to result in unusable backup.
  31. #
  32. NOBACKUP    = true
  33.  
  34. #include    <$(SYSMAKEFILE)>
  35.  
  36.  
  37. #
  38. # Use headers from the main gcc area, including both stuff from
  39. # the distribution and stuff that's been modified specially for Sprite.
  40. #
  41. .PATH.h        : ../cc/sprite ../cc/dist
  42.  
  43. #
  44. # Target to make various utility programs.  Must run a separate make
  45. # to do this, because the utilities must be compiled to run on $(MACHINE),
  46. # the current machine, instead of $(TM), the machine that the new version
  47. # of the compiler will run on.
  48. #
  49. # MACHINE        ?= sun3
  50.  
  51. utils        : .MAKE .EXEC
  52.     $(MAKE) TM=$(MACHINE) -l $(PASSVARS) -f utils.mk all
  53.  
  54. #
  55. # Targets to create a bunch of source files from the machine
  56. # description.
  57. #
  58. insn-codes.h : md $(MACHINE).md/gencodes
  59.     rm -f insn-codes.h
  60.     $(MACHINE).md/gencodes md > insn-codes.h
  61.  
  62. insn-config.h : md $(MACHINE).md/genconfig
  63.     rm -f insn-config.h
  64.     $(MACHINE).md/genconfig md > insn-config.h
  65.  
  66. insn-emit.c : md $(MACHINE).md/genemit
  67.     rm -f insn-emit.c
  68.     $(MACHINE).md/genemit md > insn-emit.c
  69.  
  70. insn-extract.c : md $(MACHINE).md/genextract
  71.     rm -f insn-extract.c
  72.     $(MACHINE).md/genextract md > insn-extract.c
  73.  
  74. insn-flags.h : md $(MACHINE).md/genflags
  75.     rm -f insn-flags.h
  76.     $(MACHINE).md/genflags md > insn-flags.h
  77.  
  78. insn-output.c: md $(MACHINE).md/genoutput
  79.     rm -f insn-output.c
  80.     $(MACHINE).md/genoutput md >insn-output.c
  81.  
  82. insn-peep.c : md $(MACHINE).md/genpeep
  83.     rm -f insn-peep.c
  84.     $(MACHINE).md/genpeep md > insn-peep.c
  85.  
  86. insn-recog.c : md $(MACHINE).md/genrecog
  87.     rm -f insn-recog.c
  88.     $(MACHINE).md/genrecog md > insn-recog.c
  89.  
  90. $(MACHINE).md/gencodes $(MACHINE).md/genconfig \
  91.       $(MACHINE).md/genemit $(MACHINE).md/genextract \
  92.       $(MACHINE).md/genflags $(MACHINE).md/genoutput \
  93.       $(MACHINE).md/genpeep $(MACHINE).md/genrecog: utils
  94.  
  95. #
  96. # Yacc can't handle cplus-parse.y
  97. #
  98. cplus-tab.c:    cplus-parse.yy
  99.         bison -v -d -o cplus-tab.c $(.OODATE)
  100. cplus-tab.h:    cplus-tab.c
  101. $(TM).md/cplus-tab.o:    cplus-tab.c
  102.         $(CC) $(CFLAGS) -o $(.TARGET) -c cplus-tab.c -DPARSE_OUTPUT=\"`pwd`/cplus-tab.output\"
  103.  
  104. #
  105. # Must add to depend targets for above-generated .h files, since they
  106. # may not exist when make depend is run for first time.
  107. #
  108.  
  109. $(TM).md/dependencies.mk    ! insn-config.h insn-codes.h insn-flags.h
  110.  
  111. TMINSTALLDIR    = /sprite/lib/gcc/$(TM).md
  112.  
  113.